QT       += core gui
QT       += sql
QT       +=network
UI_DIR=./
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    all_book.cpp \
    allreader.cpp \
    book_change.cpp \
    book_sql.cpp \
    borrow_book.cpp \
    change_info.cpp \
    changepassword.cpp \
    credit.cpp \
    customscrollcontainer.cpp \
    customwidget.cpp \
    email.cpp \
    emailwindow.cpp \
    forget.cpp \
    global.cpp \
    information.cpp \
    login.cpp \
    main.cpp \
    mainwindow.cpp \
    q_a.cpp \
    question.cpp \
    reader.cpp \
    readersql.cpp \
    register.cpp \
    resetmainwindow.cpp \
    search.cpp \
    single_book_add.cpp \
    smtp.cpp \
    ui_test.cpp \
    verifycode.cpp

HEADERS += \
    all_book.h \
    allreader.h \
    book_change.h \
    book_sql.h \
    borrow_book.h \
    change_info.h \
    changepassword.h \
    credit.h \
    customscrollcontainer.h \
    customwidget.h \
    email.h \
    emailwindow.h \
    forget.h \
    global.h \
    information.h \
    login.h \
    mainwindow.h \
    q_a.h \
    question.h \
    reader.h \
    readersql.h \
    register.h \
    resetmainwindow.h \
    search.h \
    single_book_add.h \
    smtp.h \
    ui_ChangePassword.h \
    ui_change_info.h \
    ui_changepwd.h \
    ui_emailwindow.h \
    ui_forget.h \
    ui_information.h \
    ui_test.h \
    verifycode.h

FORMS += \
    ChangePassword.ui \
    all_book.ui \
    allreader.ui \
    book_change.ui \
    borrow_book.ui \
    change_info.ui \
    credit.ui \
    emailwindow.ui \
    forget.ui \
    information.ui \
    login.ui \
    mainwindow.ui \
    q_a.ui \
    reader.ui \
    register.ui \
    search.ui \
    single_book_add.ui \
    ui_test.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    images.qrc

DISTFILES += \
    data.db
